package com.example.customview.head_hover

import android.util.Log
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.viewpager2.adapter.FragmentStateAdapter

class HeadHoverPageFragmentAdapter(activity: FragmentActivity, list: List<Fragment>): FragmentStateAdapter(activity) {
    private val data:List<Fragment> = list
    override fun getItemCount(): Int {
      return data.size
    }

    override fun createFragment(position: Int): Fragment {
      return data[position]
    }
}